from flask import session,render_template,current_app
from . import news_blu




@news_blu.route('/')
def index():
    #状态保持
    session['name'] = 2018
    return render_template('news/index.html')

#加载项目图标
@news_blu.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')


